package main.controller;

import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import main.view.Main;
import java.io.IOException;

public class UserMenu {

    @FXML
    private Button borrow;

    @FXML
    private Button back;

    @FXML
    private Button exit;

    @FXML
    private Button lose;

    @FXML
    void borrowBooks(ActionEvent event) throws IOException {
        new Main().initBorrowBook();
    }

    @FXML
    void exitSystem(ActionEvent event) throws IOException {
        new Main().exit();
    }

    @FXML
    void giveBack(ActionEvent event) throws IOException {
        new Main().initBackBook();
    }

    @FXML
    void reportLoss(ActionEvent event) {
    }
}
